package com.guigu.equipmentservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.common.utils.R;
import com.guigu.equipmentservice.dto.DetectionReportDto;
import com.guigu.equipmentservice.entity.DetectionReport;
import com.guigu.equipmentservice.vo.DetectionReportVo;

/**
 * <p>
 * 检测报告表（存储设备检测的结果及结论） 服务类
 * </p>
 *
 * @author zcy
 * @since 2025-09-28
 */
public interface DetectionReportService extends IService<DetectionReport> {
    R queryDetectionListByVo(Integer pageNum, Integer pageSize, DetectionReportVo vo);

    R queryDetectionById(Long id);

    DetectionReport queryDetectionReportByEquipmentId(Long id);

    R queryDetectionListByEquipmentId(Long equipmentId);

    R updateDetection(Long id, Integer status, String remark);


    //新增检测报告
    R addDetectionReport(DetectionReportDto detectionReportDto);
}
